<?
        require_once '../inc/functions.php';
        require_once 'data.php';
        $section='Users';
       
       
        if(isset($_REQUEST['confirm']))
        {
                if($errors = Users::Delete($_REQUEST['id']))
                {
                }else{
                        header("Location: index.php");
                }
        }
        $rs = Users::Get($_REQUEST['id']);
?>

<!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Users</title>
    </head>
   
    <body>
        <ul class="error">
                <? foreach($errors as $field => $error){ ?>
                <li><?=$field?>: <?=$error?></li>
            <? } ?>
        </ul>
        <h1>Are you sure you want to delete '<?=$rs['FirstName']?> <?=$rs['LastName']?>'?</h1>
        <form method="post">
                <input type="submit" name="confirm" value="Yes" />
            <a href="index.php">No</a>
        </form>
        </body>
</html>


